﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AFT2
{
    [Serializable]
    public class DiskInformation
    {
        [Serializable]
        public class DiskInfo
        {
            public string fileSystem { get; set; }
            public string totalSize { get; set; }
            public string usedSize { get; set; }
            public string freeSize { get; set; }
            public string blkSize { get; set; }
        }

        public List<DiskInfo> diskInfomation;

        public DiskInformation()
        {
            diskInfomation = new List<DiskInfo>();
        }

        public void addDisk(    string fileSystem, 
                                string totalSize, 
                                string usedSize, 
                                string freeSize, 
                                string blkSize      )
        {

            DiskInfo newDisk    = new DiskInfo();

            newDisk.fileSystem  = fileSystem;
            newDisk.totalSize   = totalSize;
            newDisk.usedSize    = usedSize;
            newDisk.freeSize    = freeSize;
            newDisk.blkSize     = blkSize;

            diskInfomation.Add(newDisk);

        }

        public int getNumberOfDiskInfo()
        {
            return diskInfomation.Count;
        }
    }
}
